package com.wyz.utils;

        import java.text.ParseException;
        import java.text.SimpleDateFormat;
        import java.util.Date;

public class StringToDate {
    public static Date STD(String s){
        SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd");
        try {
            return sdf.parse(s);
        } catch (ParseException e) {
            throw new RuntimeException();
        }
    }
}
